import request from "@/utils/request";

// 获取开始考试内容
export function getStartExam(examId) {
  return request({
    url: "/exam/stu/startExam/" + examId,
    method: "post",
  });
}
// 获取习题详情
export function getExamPaper(id) {
  return request({
    url: "/exam/stu/getExamPaper/" + id,
    method: "get",
  });
}
// 教师批改
export function approvalAnswer(data) {
  return request({
    url: "/manager/examSpotCheck/gradeExamPaperTopic",
    method: "post",
    data: data,
  });
}
// 结束考试
export function finshExamPaper(examId) {
  return request({
    url: "/exam/stu/endExam/" + examId,
    method: "post",
  });
}

// 提交答案
export function submitSingleAnswer(data) {
  return request({
    url: "/exam/stu/submitAnswer",
    method: "post",
    data: data,
  });
}
